#include "widget.h"
#include "./ui_widget.h"

#include <QApplication>
#include<qpushbutton.h>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::background)
{
    ui->setupUi(this);


    this->game=new maingame;//实例化注游戏窗口
    connect(ui->startButton,&QPushButton::clicked,[=](){

        this->hide();
        this->game->show();
    });
    connect(this->game,&maingame::back,[=](){
        this->game->hide();
        this->show();
    });
}

Widget::~Widget()
{
    delete ui;
}

void Widget::on_startButton_clicked()
{



}

